package com.huanbao.auth.feign;

import com.huanbao.auth.fallback.SaasFallBackFactory;
import com.huanbao.common.pojo.nwrabc.SysUser;
import com.huanbao.common.pojo.nwrabc.vo.NwUserDetails;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/* ━━━━━━佛祖保佑━━━━━━
 *                  ,;,,;
 *                ,;;'(    社
 *      __      ,;;' ' \   会
 *   /'  '\'~~'~' \ /'\.)  主
 * ,;(      )    /  |.     义
 *,;' \    /-.,,(   ) \    码
 *     ) /       ) / )|    农
 *     ||        ||  \)
 *     (_\       (_\
 * ━━━━━━永无BUG━━━━━━
 * @author ：zjq
 * @date ：2020/7/24 15:13
 * @description: TODO
 * @version: V1.0
 * @slogan: 天下风云出我辈，一入代码岁月催
 */

@FeignClient(name = "cloud-nongwu",fallbackFactory = SaasFallBackFactory.class )
public interface CloudNongwuApi {


    @PostMapping("/cms/admin/getUserInfoByName")
    NwUserDetails getUserInfoByName(@RequestParam("loginName") String userName);


}
